using System;
using TestMonkey.Models;
using System.Diagnostics.CodeAnalysis;

namespace TestMonkey.Templates
{
	[SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix")]
	public class Exception : TemplateProcessor
    {
        protected override bool ShouldRun(ModelRoot model)
        {
            if (model == null)
                throw new ArgumentNullException("model", "model is null.");

			return model.Type.HasConstructors() && model.Class.IsSubclassOf("Exception");
        }

    }
}
